package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 投票选项支付方式
 * </p>
 *
 * @author Five Team
 * @since 2018-05-16
 */
@Data
@Accessors(chain = true)
@TableName("t_vote_option_pay_integral")
public class VoteOptionPayIntegral extends Model<VoteOptionPayIntegral> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 积分ID
     */
    private Long integralId;
    /**
     * 投票ID
     */
    private Long voteId;
    private Date createDate;
    private Date updateDate;
    private String createBy;
    private Boolean isDelete;
    private Boolean isEnable;
    /**
     * 投票选项ID
     */
    private Long voteOptionId;
    /**
     * 支付数量
     */
    private BigDecimal payNumber;

    /**
     * 消费返利比例
     */
    private Double rebateRatio;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public Boolean getEnable() {
        return isEnable;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
